import Vue from "vue"

import VueRouter from "vue-router"

import Login from "../pages/Login"

import Home from "../pages/Home"

import Music from "../pages/Home/Music"

import News from "../pages/Home/News"

Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    { path: "/login", component: Login, name: "login" },
    {
      path: "/home",
      component: Home,
      children: [
        {
          path: "music",
          component: Music,
          name: "music"
        },
        {
          path: "news",
          component: News,
          name: "news"
        }
      ]

    }
  ]
})